package topcoder.srm147.div2;


public class R600 {

	public class PeopleCircle
	{
		public String order(int m,int f,int span)
		{
			char [] result=new char[m+f];
			int cur=span;
			int mf=f;
			int start=0;
			for(;mf>0;)
			{
				if(result[start]!='F')cur--;
				if(cur==0){
					result[start]='F';
					cur=span;
					mf--;
				}
				start=(start+1)%(m+f);
			}
			for(int i=0;i<m+f;i++)
			{
				if(result[i]!='F')result[i]='M';
			}
			
			
			return String.valueOf(result);
		}
	}
	
	
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		
		PeopleCircle pc=new R600().new PeopleCircle();
		System.out.println(pc.order(7, 3, 1));
	}

}
